package model.bo;

import java.util.ArrayList;

import model.bean.Account;
import model.dao.ManageAccountDAO;

public class ManageAccountBO {

	ManageAccountDAO manageAccountDAO = new ManageAccountDAO();
	
	public ArrayList<Account> getListAccount(int partID) {
		return manageAccountDAO.getListAccount(partID);
	}

	public int deleteAccount(String accountName) {
		return manageAccountDAO.deleteAccount(accountName);
	}

	public int addNewAccount(Account acc) {
		return manageAccountDAO.insertAccount(acc);
	}

    public Account getAccount(String accountName) {
        return manageAccountDAO.getAccount(accountName);
    }

    public int updateAccount(Account acc) {
        return manageAccountDAO.updateAccount(acc);
    }
}
